package week8;

public class Car extends Transport{
    private String fuel;



    public  Car(String name,int speed,String fuel){
        super(name,speed);
        this.fuel=fuel;
    }
    public  Car(){

    }
    public String getFuel() {
        return fuel;
    }
    public void setFuel(String fuel) {
        this.fuel = fuel;
    }
    public  void moveWay(){
        System.out.println(super.getName()+"的燃料类型为"+fuel);

    }



}
